<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: ResManager类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_res_manager-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">ResManager类 参考</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aaef46ee7ac51d015e37c7d56c245ce54"><td class="memItemLeft" align="right" valign="top">QOpenGLTexture *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_res_manager.html#aaef46ee7ac51d015e37c7d56c245ce54">getTexture</a> (const QString &amp;img_path, int &amp;width, int &amp;height)</td></tr>
<tr class="memdesc:aaef46ee7ac51d015e37c7d56c245ce54"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取图片纹理  <a href="class_res_manager.html#aaef46ee7ac51d015e37c7d56c245ce54">更多...</a><br /></td></tr>
<tr class="separator:aaef46ee7ac51d015e37c7d56c245ce54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae72b74f7813f5d4f1ba297db3b76d23c"><td class="memItemLeft" align="right" valign="top">QOpenGLTexture *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_res_manager.html#ae72b74f7813f5d4f1ba297db3b76d23c">getTextTexture</a> (const QString &amp;text, const QFont &amp;font, const QColor &amp;fontColor)</td></tr>
<tr class="memdesc:ae72b74f7813f5d4f1ba297db3b76d23c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文字纹理  <a href="class_res_manager.html#ae72b74f7813f5d4f1ba297db3b76d23c">更多...</a><br /></td></tr>
<tr class="separator:ae72b74f7813f5d4f1ba297db3b76d23c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f9cd1675193995ccdace1e120a985de"><td class="memItemLeft" align="right" valign="top">QOpenGLTexture *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_res_manager.html#a6f9cd1675193995ccdace1e120a985de">getSequenceFrameTexture</a> (const QPair&lt; QString, QImage * &gt; &amp;image, int &amp;width, int &amp;height)</td></tr>
<tr class="memdesc:a6f9cd1675193995ccdace1e120a985de"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取序列帧纹理，同时获取序列帧需要显示的宽高  <a href="class_res_manager.html#a6f9cd1675193995ccdace1e120a985de">更多...</a><br /></td></tr>
<tr class="separator:a6f9cd1675193995ccdace1e120a985de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6350cee78f9b26c0584fb7cf80546651"><td class="memItemLeft" align="right" valign="top"><a id="a6350cee78f9b26c0584fb7cf80546651" name="a6350cee78f9b26c0584fb7cf80546651"></a>
QOpenGLTexture *&#160;</td><td class="memItemRight" valign="bottom"><b>getSolidTexture</b> (const QRgb &amp;rgb)</td></tr>
<tr class="separator:a6350cee78f9b26c0584fb7cf80546651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a215aa5403be75e12f63de1dc0bf81dd4"><td class="memItemLeft" align="right" valign="top"><a id="a215aa5403be75e12f63de1dc0bf81dd4" name="a215aa5403be75e12f63de1dc0bf81dd4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>deleteOpenGLTextures</b> ()</td></tr>
<tr class="memdesc:a215aa5403be75e12f63de1dc0bf81dd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">必须由使用了纹理资源的QOpenGlWidget类调用才能正常释放资源 <br /></td></tr>
<tr class="separator:a215aa5403be75e12f63de1dc0bf81dd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46dcca5bd02c9dcef75c4a10f99839d2"><td class="memItemLeft" align="right" valign="top">QJsonDocument *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_res_manager.html#a46dcca5bd02c9dcef75c4a10f99839d2">getJsonDocument</a> (const QString &amp;json_path)</td></tr>
<tr class="memdesc:a46dcca5bd02c9dcef75c4a10f99839d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据json文件路径返回合适的Json文档对象  <a href="class_res_manager.html#a46dcca5bd02c9dcef75c4a10f99839d2">更多...</a><br /></td></tr>
<tr class="separator:a46dcca5bd02c9dcef75c4a10f99839d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ac856c4b7f359967fd926c888e54e1f9a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_res_manager.html">ResManager</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_res_manager.html#ac856c4b7f359967fd926c888e54e1f9a">GetInstance</a> ()</td></tr>
<tr class="memdesc:ac856c4b7f359967fd926c888e54e1f9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">资源管理器  <a href="class_res_manager.html#ac856c4b7f359967fd926c888e54e1f9a">更多...</a><br /></td></tr>
<tr class="separator:ac856c4b7f359967fd926c888e54e1f9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfbe2344aacf3487f520b1f01ba39483"><td class="memItemLeft" align="right" valign="top"><a id="abfbe2344aacf3487f520b1f01ba39483" name="abfbe2344aacf3487f520b1f01ba39483"></a>
static QImage&#160;</td><td class="memItemRight" valign="bottom"><b>createTextImage</b> (const QString &amp;text, const QFont &amp;font, const QColor &amp;fontColor)</td></tr>
<tr class="separator:abfbe2344aacf3487f520b1f01ba39483"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员函数说明</h2>
<a id="ac856c4b7f359967fd926c888e54e1f9a" name="ac856c4b7f359967fd926c888e54e1f9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac856c4b7f359967fd926c888e54e1f9a">&#9670;&nbsp;</a></span>GetInstance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_res_manager.html">ResManager</a> &amp; ResManager::GetInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>资源管理器 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a46dcca5bd02c9dcef75c4a10f99839d2" name="a46dcca5bd02c9dcef75c4a10f99839d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46dcca5bd02c9dcef75c4a10f99839d2">&#9670;&nbsp;</a></span>getJsonDocument()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QJsonDocument * ResManager::getJsonDocument </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>json_path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据json文件路径返回合适的Json文档对象 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">json_path</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a6f9cd1675193995ccdace1e120a985de" name="a6f9cd1675193995ccdace1e120a985de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f9cd1675193995ccdace1e120a985de">&#9670;&nbsp;</a></span>getSequenceFrameTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QOpenGLTexture * ResManager::getSequenceFrameTexture </td>
          <td>(</td>
          <td class="paramtype">const QPair&lt; QString, QImage * &gt; &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取序列帧纹理，同时获取序列帧需要显示的宽高 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td></td></tr>
    <tr><td class="paramname">width</td><td></td></tr>
    <tr><td class="paramname">height</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ae72b74f7813f5d4f1ba297db3b76d23c" name="ae72b74f7813f5d4f1ba297db3b76d23c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae72b74f7813f5d4f1ba297db3b76d23c">&#9670;&nbsp;</a></span>getTextTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QOpenGLTexture * ResManager::getTextTexture </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QFont &amp;&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QColor &amp;&#160;</td>
          <td class="paramname"><em>fontColor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文字纹理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aaef46ee7ac51d015e37c7d56c245ce54" name="aaef46ee7ac51d015e37c7d56c245ce54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaef46ee7ac51d015e37c7d56c245ce54">&#9670;&nbsp;</a></span>getTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QOpenGLTexture * ResManager::getTexture </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>img_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取图片纹理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">img_path</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/<a class="el" href="_res_manager_8h_source.html">ResManager.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/ResManager.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
